<template>
    <p>父组件的值:{{number}}</p>
    <CustomerSub @updateCount="updateEmitCount"/>
</template>
<script setup>
import CustomerSub from './CustomerSub.vue';
import {ref} from 'vue'
const number=ref(10)
const updateEmitCount=(value)=>{
    number.value+=value;
}
</script>